﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001E3 RID: 483
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChangeLineupLeaderScRsp : IMessage<ChangeLineupLeaderScRsp>, IMessage, IEquatable<ChangeLineupLeaderScRsp>, IDeepCloneable<ChangeLineupLeaderScRsp>, IBufferMessage
	{
		// Token: 0x1700065F RID: 1631
		// (get) Token: 0x060015DF RID: 5599 RVA: 0x0003E45C File Offset: 0x0003C65C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChangeLineupLeaderScRsp> Parser
		{
			get
			{
				return ChangeLineupLeaderScRsp._parser;
			}
		}

		// Token: 0x17000660 RID: 1632
		// (get) Token: 0x060015E0 RID: 5600 RVA: 0x0003E463 File Offset: 0x0003C663
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChangeLineupLeaderScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000661 RID: 1633
		// (get) Token: 0x060015E1 RID: 5601 RVA: 0x0003E475 File Offset: 0x0003C675
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChangeLineupLeaderScRsp.Descriptor;
			}
		}

		// Token: 0x060015E2 RID: 5602 RVA: 0x0003E47C File Offset: 0x0003C67C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChangeLineupLeaderScRsp()
		{
		}

		// Token: 0x060015E3 RID: 5603 RVA: 0x0003E484 File Offset: 0x0003C684
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChangeLineupLeaderScRsp(ChangeLineupLeaderScRsp other) : this()
		{
			this.slot_ = other.slot_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060015E4 RID: 5604 RVA: 0x0003E4B5 File Offset: 0x0003C6B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChangeLineupLeaderScRsp Clone()
		{
			return new ChangeLineupLeaderScRsp(this);
		}

		// Token: 0x17000662 RID: 1634
		// (get) Token: 0x060015E5 RID: 5605 RVA: 0x0003E4BD File Offset: 0x0003C6BD
		// (set) Token: 0x060015E6 RID: 5606 RVA: 0x0003E4C5 File Offset: 0x0003C6C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Slot
		{
			get
			{
				return this.slot_;
			}
			set
			{
				this.slot_ = value;
			}
		}

		// Token: 0x17000663 RID: 1635
		// (get) Token: 0x060015E7 RID: 5607 RVA: 0x0003E4CE File Offset: 0x0003C6CE
		// (set) Token: 0x060015E8 RID: 5608 RVA: 0x0003E4D6 File Offset: 0x0003C6D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060015E9 RID: 5609 RVA: 0x0003E4DF File Offset: 0x0003C6DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChangeLineupLeaderScRsp);
		}

		// Token: 0x060015EA RID: 5610 RVA: 0x0003E4ED File Offset: 0x0003C6ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChangeLineupLeaderScRsp other)
		{
			return other != null && (other == this || (this.Slot == other.Slot && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060015EB RID: 5611 RVA: 0x0003E52C File Offset: 0x0003C72C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Slot != 0U)
			{
				num ^= this.Slot.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060015EC RID: 5612 RVA: 0x0003E584 File Offset: 0x0003C784
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060015ED RID: 5613 RVA: 0x0003E58C File Offset: 0x0003C78C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060015EE RID: 5614 RVA: 0x0003E598 File Offset: 0x0003C798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Slot != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Slot);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060015EF RID: 5615 RVA: 0x0003E5F0 File Offset: 0x0003C7F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Slot != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Slot);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060015F0 RID: 5616 RVA: 0x0003E648 File Offset: 0x0003C848
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChangeLineupLeaderScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Slot != 0U)
			{
				this.Slot = other.Slot;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060015F1 RID: 5617 RVA: 0x0003E698 File Offset: 0x0003C898
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060015F2 RID: 5618 RVA: 0x0003E6A4 File Offset: 0x0003C8A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Slot = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000900 RID: 2304
		private static readonly MessageParser<ChangeLineupLeaderScRsp> _parser = new MessageParser<ChangeLineupLeaderScRsp>(() => new ChangeLineupLeaderScRsp());

		// Token: 0x04000901 RID: 2305
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000902 RID: 2306
		public const int SlotFieldNumber = 13;

		// Token: 0x04000903 RID: 2307
		private uint slot_;

		// Token: 0x04000904 RID: 2308
		public const int RetcodeFieldNumber = 1;

		// Token: 0x04000905 RID: 2309
		private uint retcode_;
	}
}
